package com.study.结构型模式.适配器模式.类适配器模式;

//适配器
public class VoltageAdapter extends Voltage220V implements IVoltage5V {


    @Override
    public int outPut5V() {
        //获取到220V电压
        int srcV = outPut220V();
        int destV = srcV/44;  //转成5V
        return destV;
    }
}
